import lxy_event from './lxy_page_event.js';

class Lxy_page_event_export_data extends lxy_event {
	constructor(e) {
		super(e);
		this.init(e);
	}

	init(e) {
		console.log('Lxy_page_event_export_data init', e);
		this.cfg = e;
	}

	callEvent(expParams, rowIndex = -1, vm) {
		console.log('[Debug][DialogEvent]Call: ', this, this._dataSrc, vm);
		const inputParams = this.calcInputParams(rowIndex);
		console.log('inputParams', inputParams);
		if (inputParams === undefined || (!(inputParams instanceof Object) && isNaN(inputParams))) {
			return null;
		}
		return { ...inputParams, code: '0000' };
	}
}

export default Lxy_page_event_export_data;
